<template>
  <div id="app" @click="clickHandler">
    <router-view/>
  </div>
</template>

<script>
import { mapMutations } from 'vuex';

export default {
  name: 'App',
  methods: {
    ...mapMutations(['SET_SHOW_LANGLIST', 'SET_SHOW_SUBACCOUNTLIST', 'SET_SHOW_COINPRICE']),
    clickHandler() {
      // 关闭语言切换下拉框
      this.SET_SHOW_LANGLIST(false);
      // 关闭子账户下拉框
      this.SET_SHOW_SUBACCOUNTLIST(false);
      // 关闭币价下拉
      this.SET_SHOW_COINPRICE(false);
    },
  },
};
</script>
